# encoding=utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')

class JT_9207:
    result=[]
    analysisDescription=['应答流水号：','上传控制：']
    analysis9207Length = [2, 1]

    def LogicAisle(self, protocolStr, header):
        count = 0
        s = protocolStr[count:(count + self.analysis9207Length[0] * 2)]
        header.append(self.analysisDescription[0] + s + "\n")
        count += self.analysis9207Length[0]*2

        s = protocolStr[count:count + self.analysis9207Length[1] * 2]
        if s == "00":
            header.append(self.analysisDescription[1] + s + " 暂停" + "\n")
        elif s == "01":
            header.append(self.analysisDescription[1] + s + " 继续" + "\n")
        elif s == "02":
            header.append(self.analysisDescription[1] + s + " 取消" + "\n")
        count += self.analysis9207Length[1]*2

        self.result = header

